package com.demo.TDengine.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.demo.TDengine.domain.Water;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface   WaterMapper {

    @Insert("insert into d1001 (ts, phase) values(#{ts}, #{phase})")
    int insertOne(Water water);

    @Select("select * from meters")
    List<Water> selectList(Page page);
}
